#include <iostream>
#include <thread>
#include <mutex>
#include <atomic>
std::atomic<int> a = 0;

void threadF()
{
	for (int i = 0; i < 100000; ++i) {
        a++;
        a--;
	}
}
int main()
{
	
	std::thread t1(threadF);
	std::thread t2(threadF);
	std::cout << a << std::endl;
	t1.join();
	t2.join();

	return 0;
}



